<?php

use App\Http\Controllers\Recruit\Business\BaseController;
use Illuminate\Support\Facades\Route;

// 用户不需要登录认证相关的路由组
Route::prefix('business')->group(function(){
    Route::post('base/login',[BaseController::class,'login']);
    Route::post('base/bind',[BaseController::class,'bind']);
    Route::post('base/register',[BaseController::class,'register']);
});

// 用户需要登录认证相关的路由组
Route::prefix('business')->middleware('Auth')->group(function(){
    Route::post('base/unbinding',[BaseController::class,'unbinding']);
    Route::post('base/profile',[BaseController::class,'profile']);
});